package com.ccx.coachsite.bus;

import java.io.Serializable;

public class TutorialInfo implements Serializable {

	private static final long serialVersionUID = 4418486531456966609L;

	private int id;
	private String imageUrl;
	private String title;
	private String content;
	private String date;
	private String apkUrl;
	private int apkId = -1;
	private boolean isFavour = false;
	private int categoryId = -1;

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param imageUrl
	 *            the imageUrl to set
	 */
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	/**
	 * @return the imageUrl
	 */
	public String getImageUrl() {
		return imageUrl;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getDate() {
		return date;
	}

	/**
	 * @param apkUrl
	 *            the apkUrl to set
	 */
	public void setApkUrl(String apkUrl) {
		this.apkUrl = apkUrl;
	}

	/**
	 * @return the apkUrl
	 */
	public String getApkUrl() {
		return apkUrl;
	}

	public void setFavour(boolean isFavour) {
		this.isFavour = isFavour;
	}

	public boolean isFavour() {
		return isFavour;
	}

	public void setApkId(int apkId) {
		this.apkId = apkId;
	}

	public int getApkId() {
		return apkId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategory() {
		switch (categoryId) {
		case 2:
			return "苹果";
		case 3:
			return "WP";
		default:
			return "安卓";
		}
	}
}
